home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
BASIC
/
0006.ZIP
/
FU.DOC
< prev
next >
Wrap
Text File
|
1982-05-03
|
7KB
|
169 lines
FU.COM is a command which will allow you to manipulate PC files much like the
FLIST command of VM. After invoking the FU command, it becomes part of the
DOS operating system. This fact is indicated by the 'large' cursor which
will be present when you are being prompted from DOS.
FU provides a full screen list of a file set specified by the user. These
may be presented in name, extension, date, or size order, and the order of
presentation may be changed dynamically. Beside each entry is displayed an
area to allow the entry of commands. In display mode, the editing keys and
function keys may be used to page through the list and add or delete
commands. When the execution mode is entered, the commands are passed to the
command environment for execution; commands are returned to the command
environment, one after the other. When all commands have been executed, the
DOS prompt appears, with a full block cursor. Entry of a null command (I.e.
return) will redisplay the file list. Any other entry will be immediately
executed by DOS.
The program becomes a resident extension of DOS. It occupies approximately
6K bytes of storage. At present, DOS must be IPLed to remove the resident
extension.
INVOKING FULIST
FU < fspec > < /sn | /se | /sd | /ss >
where - fspec is of the form d:name.ext. If omitted it defaults to all files
on the default disk. If the /sx is omitted, the display is in date
sequence.
FU is invoked from the DOS command environment by issuing the command shown
above. If the filespec is omitted, all files on the current default disk
will be listed. If /sx is omitted, the files will be sorted by date.
SCREEN FORMAT
The displayed screen consists of three distinct areas. The first line is a
status line. The first two characters are the DOS prompt currently active.
The balance of the line gives the free space on the listed diskette plus the
number of the first displayed entry as well as the count of active
(displayed) entries.
The next 23 lines contain display entries for listed files. The first 20
positions are a command area. The balance of the line contains the drive,
name, and extension for the file, followed by the date and size of the file
in hex. Lastly, the attributes of the file are displayed.
The last line of the screen displays the PF key settings.
MANIPULATING THE DISPLAY
Once the list is displayed, the editing keys on the keyboard may be used to
manipulate the screen. The semantics for the key usage follow those used for
the BASIC editor. They are:
PGUP move the display to show entries near the beginning of the
entry sequence.
CTL-PGUP move the display to show the first screen of entries in the entry
sequence.
PGDN move the display to show the last screen of entries in the entry
sequence.
CTL-PGDN move the display to show the last screen of entries in the entry
sequence.
HOME Position the cursor to the first position of the command area on
the first entry displayed on the screen.
END position the cursor to the last character in the command field.
CTL-END erase the command area from the cursor to the end of the field.
INS toggle insert mode. When in insert mode, a full block cursor is
displayed.
DEL delete the character at the cursor.
Cursor keys move the cursor in the directions depicted by the arrows.
ENTER positions the cursor to the beginning of the next command area.
backspace deletes the character to the left of the cursor.
TAB skips to the first position of the next command area.
up-tab skips backward to the beginning of the previous command field.
If the cursor is not in the first position of the command area,
this key will position to the first position of the current
command area.
CTL-return enter the execution mode.
PROGRAM FUNCTION KEYS
The functions provided on the PF keys are displayed on the 25th line of the
display. No provision is currently provided for modifying these assignments.
They are set in a table in character string form, so those who are
knowledgeable in the use of DEBUG could reassign them. A possible future
extension is to allow user setting via a command or profile or both. The
assignment is similar to the BASIC softkeys, with the PF key placing the
assigned character string on the command line at the first position. If the
last character of the string is the ascii for an Esc character, the
character is not moved to the command line, but the execution mode is
entered.
INTERNAL FULIST FUNCTIONS
Certain functions which refresh and reorder the displayed entries are
available. They are:
/B Display the last (bottom) page for this level.
/R fspec Replace the current display with the display for the specified file
specification. If fspec is omitted the currently displayed file
spec will be refreshed. The sort order for the refreshed display
will be the same as that of the currently displayed list.
/O Omit appending the file spec at the end of the command line.
/Sx Sort the level on specified field(s). After sorting, the level is
redisplayed from the top. Sorting can be performed on the following
fields:
/SN - name ext ascending
/SE - ext name ascending
/SD - date name ext descending
/SS - size name ext descending
/T Display the first (top) page for this level.
/X Exclude this entry from the list. The entry will no longer be
shown.
/<nnn> position file nnnn as the top line on the screen. If nnnn is
omitted, the line which contains the / is positioned as the top
line.
= repeat the last external command executed. FULIST functions are not
considered to be commands in this respect and thus cannot be
repeated.
? Display the last external command executed. To execute the command,
at least one character has to be retyped.
USING THE INPUT AREA
The input areas after the fileids may be used to enter any command as in the
normal DOS environment. If not explicitly specified, FULIST will put the
filespec at the end of the command line, unless the command is preceded by
the /O internal command. If the fileid (or parts of it) are to be inserted
at a different place in the command line, the special indicator / may be
used. It may be used anywhere in the command sequence, as follows:
/ insert the complete fileid
/d insert the drive id (d:)
/n insert the file name
/e insert the file extension
Any combination of d, n, and e is valid. To prevent any part of the fileid
from being used in the command sequence the /O function may be used as the
first parameter, When all input fields are processed, the DOS prompt will be
displayed, with a full block cursor. If a null command is issued, the screen
is redisplayed.